package view;

import java.awt.BorderLayout;
import java.awt.TextField;

import javax.swing.JFrame;
import javax.swing.JLabel;

public abstract class AbstractTextFieldFrame extends AbstractStandartFrame
{
	public static TextField textFiled;
	
	/**
	 * C'tor
	 * Define the frame
	 */
	public AbstractTextFieldFrame(String title, String labelText)
	{
		/* Window's characteristics */
		super("Ruleset");
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setLayout(new BorderLayout());

		/* Label */
		JLabel label = new JLabel(labelText);
	    add(label, BorderLayout.NORTH);
	   
		/* Text for inserting integer */
	    textFiled = new TextField("");
	    add(textFiled, BorderLayout.CENTER);

		/* Standart buttons */
	    addStandartButtons();
	  }
}
